home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Commodities / TeleBase / TeleBASE.install < prev   
Text File  |  1996-09-26  |  4KB  |  232 lines

  1. (set #screenselectcopyhelp (cat
  2.     "This is the directory you want TeleBASE program "
  3.     "to be installed. If you want TeleBASE always to start "
  4.     "in boot up process then you should install it to "
  5.     "WBStartup-directory.") )
  6.  
  7.  
  8. (set #tooltypeshelp (cat
  9.     "These are the commodity tooltypes for "
  10.     "TeleBASE. You should run the TBPrefs "
  11.   "program to complete the installation\n") )
  12.  
  13. (set #TBPrefscopyhelp (cat
  14.     "This is the directory you want The TeleBASE "
  15.      "Preferences setting program to be installed. "
  16.      "For maximum consistency with system preferences "
  17.      "programs you should install it to Prefs-directory.") )
  18.  
  19. (set #doccopyhelp (cat
  20.     "Select documentation files for TeleBASE and "
  21.     "TBPrefs programs you want to be installed." )
  22. )
  23.  
  24. (set ver (/ (getversion "workbench.library") 65536) )
  25.  
  26. (complete 0)
  27.  
  28. (set #destination
  29.         (askdir
  30.             (prompt "Where would you like to install TeleBASE program?")
  31.             (help #TeleBASEcopyhelp )
  32.             (default "SYS:WBStartup/")
  33.         )
  34. )
  35.  
  36. (set @default-dest #destination)
  37.  
  38. (message "Copy TeleBASE to " #destination " directory?\n")
  39.  
  40. (copyfiles (source "TeleBASE")
  41.            (dest #destination)
  42.            (infos)
  43. )
  44.  
  45. (complete 30)
  46.  
  47. (set #tooltypeopts
  48.         (askoptions
  49.             (prompt "Which tooltypes you want to set for TeleBASE\n")
  50.             (help #tooltypeshelp)
  51.             (choices "CX_POPUP" "CX_PRI" "CX_POPKEY" )
  52.             (default 0)
  53.         )
  54. )
  55.  
  56. (if (IN #tooltypeopts 0)
  57.         (tooltype
  58.             (dest
  59.                     (tackon
  60.                         #destination "TeleBASE")
  61.                     )
  62.             (settooltype "CX_POPUP" "YES")
  63.             (noposition) )
  64.         (tooltype
  65.             (dest
  66.                     (tackon
  67.                         #destination "TeleBASE")
  68.                     )
  69.             (settooltype "CX_POPUP" "NO")
  70.             (noposition) ) )
  71.  
  72. (if (IN #tooltypeopts 1)
  73.         (tooltype
  74.             (dest
  75.                     (tackon
  76.                         #destination "TeleBASE")
  77.                     )
  78.             (settooltype "CX_PRI"
  79.                     (cat
  80.                             (asknumber
  81.                                     (prompt "TeleBASE commodity priority?")
  82.                                     (help "")
  83.                                     (range -127 127)
  84.                                     (default 0)
  85.                             )
  86.                     )
  87.             )
  88.             (noposition)
  89.         )
  90. )
  91.  
  92. (if (IN #tooltypeopts 2)
  93.         (tooltype
  94.             (dest (tackon #destination "TeleBASE") )
  95.             (settooltype "CX_POPKEY"
  96.                     (askstring
  97.                         (prompt "TeleBASE popkey string?")
  98.                         (help
  99.                                 (cat
  100.                                     "You can also set popkey string with\n"
  101.                                     "TBPrefs program.")
  102.                                 )
  103.                         (default "rcommand F10")
  104.                     )
  105.             )
  106.             (noposition)
  107.         )
  108. )
  109.  
  110. (complete 50)
  111.  
  112. (set #prefs
  113.         (askdir
  114.             (prompt "Where should I install the TBPrefs program?")
  115.             (help #TBPrefscopyhelp)
  116.             (default "SYS:Prefs/")
  117.         )
  118. )
  119.  
  120. (message "Copy TBPrefs to " #prefs " directory?\n")
  121.  
  122. (copyfiles (source "TBPrefs")
  123.            (dest #prefs)
  124.            (infos) 
  125. )
  126.  
  127. (tooltype (dest (tackon #prefs "TBPrefs"))
  128.   (settooltype "TeleBASE" (tackon #destination "TeleBASE"))
  129.   (noposition)
  130. )
  131.  
  132. (set #prefsinrightplace (IN (exists "SYS:Prefs/TBPrefs" (noreq)) 0))
  133.  
  134. (complete 73)
  135.  
  136. (if (= 0 #prefsinrightplace)
  137.         (tooltype (dest (tackon #destination "TeleBASE"))
  138.                   (settooltype "PREFSPROGRAM" (tackon #prefs "TBPrefs"))
  139.                   (noposition)
  140.         )
  141. )
  142.  
  143. (complete 85)
  144.  
  145. (set #docfiles
  146.         (askoptions
  147.             (prompt "Which document files you want to install?\n")
  148.             (help #doccopyhelp)
  149.             (choices "TeleBASE.doc   - ASCII file."
  150.                "TBPrefs.doc    - ASCII file."
  151.                      )
  152.             (default 3)
  153.         )
  154. )
  155.  
  156. (if (= 0 #docfiles)
  157.         (message "No document files installed!\n")
  158.         (
  159.             (set #docdir
  160.                     (askdir
  161.                         (prompt "Where should I install the document files?")
  162.                         (help "" )
  163.                         (default "WORK:")
  164.                     )
  165.             )
  166.  
  167.             (complete 93)
  168.  
  169.             (if (IN #docfiles 0)
  170.                 (
  171.                     (copyfiles
  172.                             (source "docs/TeleBASE.doc")
  173.                                (dest #docdir)
  174.                                (infos)
  175.  
  176.                     )
  177.  
  178.                     (set #docfilename
  179.                             (tackon #docdir "TeleBASE.doc")
  180.                     )
  181.  
  182.                     (if (> ver 38)
  183.                             (tooltype
  184.                                 (dest #docfilename)
  185.                                 (setdefaulttool "MultiView")
  186.                                 (noposition)
  187.                             )
  188.                             (tooltype
  189.                                 (dest #docfilename)
  190.                                 (setdefaulttool "More")
  191.                                 (noposition)
  192.                             )
  193.                     )
  194.                 )
  195.             )
  196.  
  197.             (complete 96)
  198.  
  199.             (if (IN #docfiles 1)
  200.                 (
  201.                     (copyfiles
  202.                             (source "docs/TBPrefs.doc")
  203.                                (dest #docdir)
  204.                                (infos)
  205.  
  206.                     )
  207.  
  208.                     (set #docfilename
  209.                             (tackon #docdir "TBPrefs.doc")
  210.                     )
  211.  
  212.           (if (> ver 38)
  213.                             (tooltype
  214.                                 (dest #docfilename)
  215.                                 (setdefaulttool "MultiView")
  216.                           (noposition)
  217.                         )
  218.                     (tooltype
  219.                                 (dest #docfilename)
  220.                                 (setdefaulttool "More")
  221.                                 (noposition)
  222.                         )
  223.                     )
  224.                 )
  225.             )
  226.  
  227.             (complete 98)
  228.         )
  229. )
  230.  
  231. (complete 100)
  232.